//
//  PTIndexList.swift
//  PTWatch Watch App
//
//  Created by sc-chen on 2023/8/18.
//

import SwiftUI
import WatchKit

struct PTIndexList: View {
    let data = ["1级要求","2-5级要求"]
    var body: some View {
        List {
            ForEach(0..<data.count) { index in
                NavigationLink {
                    if index == 0 {
                        PTRequireOne()
                    }else{
                        PTRequireTwo()
                    }
                } label: {
                    Text(data[index])
                        .padding(.top,10)
                        .padding(.bottom,10)
                }
                
            }
        }
    }
}

struct PTIndexList_Previews: PreviewProvider {
    static var previews: some View {
        PTIndexList()
    }
}
